package sms_interface;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
/**
 * 
 * @author aayushjain
 * Querying the mysql database(Authority_Database). 
 */
public class LogEntryGood {
	/**
	 * Executing mysql query.
	 * @param query mysql query to be executed.
	 * @throws Exception
	 */
	public static void enter(String query) throws Exception{
		String Url = "jdbc:mysql://localhost:3306/Authority_Database";
		Class.forName("com.mysql.jdbc.Driver");
		Connection con = DriverManager.getConnection (Url,"root","aayush");
		Statement stmt = con.createStatement();
		stmt.executeUpdate(query);
        
	}

}
